< previous page page_870 next page >

Page 870
Table A.4. Visual Basic controls for the SQLVBChild child form.
ControlPropertySetting
FormNameSQLVBChild
Height3690
Width7485
MDIChild-1True
DataNameData1
Height300
Left120
Top2820
Width7095
VisibleFalse
DBGridNameDBGrid1
Height2535
Left120
DataSourceData1
Top120
Width7095

You need to add code in four locations within the SQLVBChild form: the Form_Load event, the Form_Activate event, the Form_Unload event, and the Form_Resize event.
Tip.gif
To add code to one of the form events, double-click any empty location of the form to bring up the Visual Basic code window for SQLVBChild. The first event you should see is the Form_Load event. You can use the drop-down list box on the right to locate other events for the form object.

Open the Visual Basic code window for the Form_Load event and add the Visual Basic program code in Listing A.2.

 
< previous page page_870 next page >

If you like this book, buy it!